/*
 * 作者:熊猫
 * 日期:2017 - 3 - 19 9 - 25 - 41
 *
 */

package net.lainiao.morethread.Chapter7.demo7;

import java.util.concurrent.ForkJoinPool;

/**
 * Created by Administrator on 2017/3/19.
 */
public class Main {
    public static void main(String[] args) {
        ForkJoinPool pool=new ForkJoinPool();
        int[] array=new int[10000];
        Task task=new Task("Task",array,0,array.length);
        pool.invoke(task);
        pool.shutdown();
        System.out.println("Main Over");
    }
}
